package top.codedance.iotp.simulator.serialPort.bean;

public class ComConnectParam {
    private String comName;
    private int newBaudRate;
    private int newDataBits;
    private int newStopBits;
    private int newParity;
    private boolean useRS485Mode;

    public ComConnectParam() { }

    public ComConnectParam(String comName, int newBaudRate, int newDataBits, int newStopBits, int newParity, boolean useRS485Mode) {
        this.comName = comName;
        this.newBaudRate = newBaudRate;
        this.newDataBits = newDataBits;
        this.newStopBits = newStopBits;
        this.newParity = newParity;
        this.useRS485Mode = useRS485Mode;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public int getNewBaudRate() {
        return newBaudRate;
    }

    public void setNewBaudRate(int newBaudRate) {
        this.newBaudRate = newBaudRate;
    }

    public int getNewDataBits() {
        return newDataBits;
    }

    public void setNewDataBits(int newDataBits) {
        this.newDataBits = newDataBits;
    }

    public int getNewStopBits() {
        return newStopBits;
    }

    public void setNewStopBits(int newStopBits) {
        this.newStopBits = newStopBits;
    }

    public int getNewParity() {
        return newParity;
    }

    public void setNewParity(int newParity) {
        this.newParity = newParity;
    }

    public boolean isUseRS485Mode() {
        return useRS485Mode;
    }

    public void setUseRS485Mode(boolean useRS485Mode) {
        this.useRS485Mode = useRS485Mode;
    }
}
